# -*- coding:utf-8 -*-

import urllib
import urllib2
url='https://www.runoob.com/';
request = urllib2.Request(url)
response =urllib2.urlopen(request)
#print(response.closed)

while response:
	print(1,type(response))
	#print(2,response.status,response.reason)
	print(3,response.geturl())
	print(4,response.info())
	print(5,response.read())
	pass